<table>
    <thead>
        <tr>
            <th>
                Toolbox
            </th>
            <th>
                Count
            </th>
        </tr>
    </thead>
    <tbody>
        <c:set var="tr"/>
        <c:forEach items="${allowedKeys}" var="key" varStatus="status">
            <c:if test="${status.count mod 5 == 1}">
                <tr>
                </c:if>
                <td>
                    ${key}
                </td>
                <td>

                </td>
                <c:if test="${status.count mod 5 == 0}">
                    <c:set var="tr" value="OK"/>
                </tr>
            </c:if>
            <c:if test="${status.count mod 5 ne 0}">
                <c:set var="tr" value="NOK"/>
            </c:if>
        </c:forEach>
        <c:if test="${tr=='NOK'}">
            </tr>
        </c:if>
    </tbody>
</table>